/**
 * User: gongming
 * Date: 7/11/14
 * Time: 12:27 AM
 * Email:gongmingqm10@foxmail.com
 */
public class FizzBuzzGame {
    public static void main(String[] args) {
        FizzBuzzGame game = new FizzBuzzGame();
        game.FizzBuzz();
    }

    public void FizzBuzz() {
        for (int i = 1; i <= 100; i++) {
            System.out.println(prefixFizzBuzz(i));
        }
    }

    private String prefixFizzBuzz(int number) {
        if (number % 15 == 0) return "FizzBuzz";
        if (number % 3 == 0) return "Fizz";
        if (number % 5 == 0) return "Buzz";
        return String.valueOf(number);
    }

}
